const tree = [
  {"code":"001", "name":"菜单1", "pCode":""},
  {"code":"001001", "name":"菜单1-1", "pCode":"001"},
  {"code":"001001001", "name":"菜单1-1-1", "pCode":"001001"},
  {"code":"001001002", "name":"菜单1-1-2", "pCode":"001001"},
  {"code":"001002", "name":"菜单1-2", "pCode":"001"},
  {"code":"001002001", "name":"菜单1-2-1", "pCode":"001002"},
  {"code":"001002002", "name":"菜单1-2-2", "pCode":"001002"},
  {"code":"001002003", "name":"菜单1-2-3", "pCode":"001002"},
  {"code":"001002004", "name":"菜单1-2-4", "pCode":"001002"},
  {"code":"001003", "name":"菜单1-3", "pCode":"001"},
  {"code":"001003001", "name":"菜单1-3-1", "pCode":"001003"},
  {"code":"001003002", "name":"菜单1-3-2", "pCode":"001003"},

  {"code":"002", "name":"菜单2", "pCode":""},
  {"code":"002001", "name":"菜单2-1", "pCode":"002"},
  {"code":"002002", "name":"菜单2-2", "pCode":"002"},
  {"code":"002003", "name":"菜单2-3", "pCode":"002"},
  {"code":"002004", "name":"菜单2-4", "pCode":"002"},
  {"code":"002005", "name":"菜单2-5", "pCode":"002"},
  {"code":"002006", "name":"菜单2-6", "pCode":"002"},

  {"code":"003", "name":"菜单3", "pCode":""},
  {"code":"003001", "name":"菜单3-1", "pCode":"003"},
  {"code":"003001001", "name":"菜单3-1-1", "pCode":"003001"},
  {"code":"003001001001", "name":"菜单3-1-1-1", "pCode":"003001001"},
  {"code":"003001001001001", "name":"菜单3-1-1-1-1", "pCode":"003001001001"}
]

module.exports = [
  // 获取树状数据
  {
    url: '/vue-admin-template/user/tree',
    type: 'get',
    response: config => {
      // 用户有效
      return {
        code: 20000,
        data: tree
      }
    }
  }
]
